//
//  SXReadListModel.m
//  ShiXun
//
//  Created by lanou on 15/10/28.
//  Copyright © 2015年 张琪. All rights reserved.
//

#import "SXReadListModel.h"
#import "SXReadListSonModel.h"

@implementation SXReadListModel

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"tList"]) {
        self.songsArray = [NSMutableArray array];
        for (NSDictionary *dict in value) {
            SXReadListSonModel *model = [[SXReadListSonModel alloc] init];
            [model setValuesForKeysWithDictionary:dict];
            [self.songsArray addObject:model];
        }
    }
    else
    {
        [super setValue:value forKey:key];
    }
}

@end
